package net.hn.hnms.biz.intelligence.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
//import net.hn.config.SensorStatusValue;
//import net.hn.modules.safety.calculation.intf.PointValueRaw;

import java.time.Instant;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SensorValuesVO {
    private String mineCode;
    private String sensorType;
    private String sensorTypeName;
    private String pointCode;
    private String pointLocation;
    private String pointValue;
    private Instant dataTime;
    private String pointStatus;
    private String pointStatusName;
    private String maxPointValue;
    private String minPointValue;
    private String valueUnit;
    private Instant startTime;
    private Instant endTime;
    private String pointValueName;

//    public SensorValuesVO(PointValueRaw pointValueRaw){
//        this.sensorTypeName = pointValueRaw.getSensorTypeName();
//        this.pointCode = pointValueRaw.getPointCode();
//        this.pointLocation = pointValueRaw.getPointLocation();
//        this.pointValue = pointValueRaw.getPointValue();
//        this.dataTime = pointValueRaw.getDataTime();
//        this.sensorType = pointValueRaw.getSensorType();
//        this.pointStatus = pointValueRaw.getPointStatus();
////        if(pointValueRaw.getPointStatus()!=null){
////            this.pointStatusName = SensorStatusValue.getAqjkPointStatusMap(pointValueRaw.getPointStatus());
////        }else{
////            this.pointStatusName=null;
////        }
//        if(pointValueRaw.getPointStatus()!=null ){
//            if(Integer.valueOf(pointValueRaw.getPointStatus()) < 256){
//                this.pointStatusName = SensorStatusValue.getAqjkPointStatusMap(pointValueRaw.getPointStatus());
//            } else {
//                this.pointStatusName = pointValueRaw.getPointStatus() + "(未知状态)";
//            }
//        }else{
//            this.pointStatusName=null;
//        }
//
//        this.maxPointValue=pointValueRaw.getMaxPointValue();
//        this.minPointValue=pointValueRaw.getMinPointValue();
//        this.valueUnit=pointValueRaw.getValueUnit();
//        this.mineCode=pointValueRaw.getMineCode();
//    }
//
//
//    public SensorValuesVO(String pointValue, String maxPointValue, String minPointValue,
//                          Instant dataTime, String pointCode, String mineCode,
//                          String sensorType, String sensorTypeName, String pointLocation,
//                          String valueUnit, String pointStatus, String pointValueName, Instant startTime, Instant endTime) {
//        this.sensorTypeName = sensorTypeName;
//        this.pointCode = pointCode;
//
//        this.pointLocation = pointLocation;
//        this.pointValue = pointValue;
//        this.dataTime = dataTime;
//        this.sensorType = sensorType;
//        this.pointStatus = pointStatus;
//        if(pointStatus!=null ){
//            if(Integer.valueOf(pointStatus ) < 256){
//                this.pointStatusName = SensorStatusValue.getAqjkPointStatusMap(pointStatus);
//            } else {
//                this.pointStatusName = pointStatus + "(未知状态)";
//            }
//        }else{
//            this.pointStatusName=null;
//        }
//        this.maxPointValue=maxPointValue;
//        this.minPointValue=minPointValue;
//        this.valueUnit=valueUnit;
//        this.mineCode=mineCode;
//        this.startTime=startTime;
//        this.endTime=endTime;
//        this.pointValueName=pointValueName;
//
//    }
}
